package com.shtel.customeraccount.service;


import com.shtel.customeraccount.entity.AcconutInfo;
import com.shtel.customeraccount.entity.ConsumerInfo;
import com.shtel.customeraccount.entity.RechargeInfo;
import com.shtel.customeraccount.mapper.QueryMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerAccountService {

    @Autowired
    QueryMapper queryMapper;

    //查询充值缴费记录
    public List<RechargeInfo> queryrechargeinfo(String creditnum) {
        return queryMapper.queryrechargeinfo(creditnum);

    }

    //查询消费记录
    public List<ConsumerInfo> queryconsumerinfo(String creditnum) {

        return queryMapper.queryconsumerinfo(creditnum);
    }

    //查询关联银行卡、翼支付账号
    public AcconutInfo queryacconutinfo(String creditnum) {
        return queryMapper.queryacconutinfo(creditnum);

    }


}
